package com.daoeping.service.impl;

import java.util.List;

import com.daoeping.dao.Usr_friendDAO;
import com.daoeping.data.Usr_friend;
import com.daoeping.data.Usr_user;
import com.daoeping.domain.Page;
import com.daoeping.service.Usr_friendService;

public class Usr_friendServiceImpl implements Usr_friendService{
	private Usr_friendDAO usr_friendDAO;
	public Usr_friendDAO getUsr_friendDAO() {
		return usr_friendDAO;
	}

	public void setUsr_friendDAO(Usr_friendDAO usr_friendDAO) {
		this.usr_friendDAO = usr_friendDAO;
	}

	@Override
	public boolean addUsr_friend(Usr_friend usr_friend) {
		return usr_friendDAO.insertData(usr_friend);
	}

	@Override
	public List<Usr_user> findUsr_friendList(Usr_user usr_user) {
		return usr_friendDAO.findUsr_friendList(usr_user);
	}

}
